package cn.javadog.smartbreeding.record.entity;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * 票据
 * @author 余勇
 * @since 2019-10-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="票据")
public class Bill implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "流水号")
    private String serialNo;

    @ApiModelProperty(value = "销售渠道")
    private String saleChannel;

    @ApiModelProperty(value = "死鸡重量")
    private Integer sickChickenWeight;

    @ApiModelProperty(value = "死鸡数量")
    private Integer sickChickenNum;

    @ApiModelProperty(value = "抽样笼总重")
    private Integer sampleCageWeight;

    @ApiModelProperty(value = "抽样笼数")
    private Integer sampleCageNum;

    @ApiModelProperty(value = "单价(单位:分/斤)")
    private Integer unitPrice;

    @ApiModelProperty(value = "总价")
    private Integer totalPrice;

    @ApiModelProperty(value = "售卖日期")
    private LocalDate saleDate;

    @ApiModelProperty(value = "支付状态")
    private String payStatus;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
